//
//  StackView.swift
//  myhub
//
//  Created by x on 2024/5/27.
//

import UIKit

open class StackView: UIStackView {
    public override init(frame: CGRect) {
        super.init(frame: frame)
        makeUI()
    }
    public required init(coder: NSCoder) {
        super.init(coder: coder)
        makeUI()
    }
    open func makeUI() {
        spacing = inset
        axis = .vertical
        updateUI()
    }
    open func updateUI() {
        setNeedsDisplay()
    }
}
